package com.a;


import java.io.*;

public class aaaa {
    public static String getStr (String s) throws IOException {
        StringBuffer buffer = new StringBuffer();
        BufferedReader bf= new BufferedReader(new FileReader(s));
        while((s = bf.readLine())!=null){//使用readLine方法，一次读一行
            buffer.append(s.trim());
        }
        return buffer.toString();


    }

}
